//
//  ColorColletionViewCell.m
//  TestProject
//
//  Created by 杨小平 on 14-8-31.
//  Copyright (c) 2014年 yangxiaoping. All rights reserved.
//

#import "ColorColletionViewCell.h"

@implementation ColorColletionViewCell

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.colorView=[[UIView alloc] initWithFrame:CGRectMake(0, 0, CELL_SIZE.width, CELL_SIZE.height*2/5.0)];
        [self addSubview:self.colorView];
        
        UIView *BgView=[[UIView alloc] initWithFrame:CGRectMake(0, CELL_SIZE.height*2/5.0, CELL_SIZE.width, CELL_SIZE.height*3/5.0)];
        BgView.layer.borderColor=kColor(229, 226, 235).CGColor;
        BgView.layer.borderWidth=2.0f;
        [self addSubview:BgView];
        
        
        self.RLabel=[[UILabel alloc] initWithFrame:CGRectMake(5,0, CELL_SIZE.width-10, CELL_SIZE.height/5.0)];
        self.RLabel.font=LABEL_FONT;
        [BgView addSubview:self.RLabel];
        
        self.GLabel=[[UILabel alloc] initWithFrame:CGRectMake(5,CELL_SIZE.height*1/5.0, CELL_SIZE.width-10, CELL_SIZE.height/5.0)];
        self.GLabel.font=LABEL_FONT;
        [BgView addSubview:self.GLabel];
        
        self.BLabel=[[UILabel alloc] initWithFrame:CGRectMake(5,CELL_SIZE.height*2/5.0, CELL_SIZE.width-10, CELL_SIZE.height/5.0)];
        self.BLabel.font=LABEL_FONT;
        [BgView addSubview:self.BLabel];
    }
    return self;
}



@end
